<ion-header class="g-header-segment">

  <ion-navbar>
    <ion-segment [(ngModel)]="type">
      <ion-segment-button [value]="0">
        充值
      </ion-segment-button>
      <ion-segment-button [value]="1">
        提现
      </ion-segment-button>
    </ion-segment>
  </ion-navbar>

</ion-header>

<ion-content>
  <g-slides (didChange)="type = $event" [index]="type">
    <div class="slide1">
      <g-pay-bank [(card)]="rechargeBank"></g-pay-bank>
      <ion-input class="g-input" text-center placeholder="输入金额" type="number"></ion-input>
      <button ion-button class="g-button danger" full g-margin (click)="submit()">确认充值</button>
    </div>
    <div class="slide2">
      <g-pay-bank></g-pay-bank>
      <ion-input class="g-input" text-center placeholder="输入金额" type="number"></ion-input>
      <button ion-button class="g-button primary" full g-margin>确认提现</button>
    </div>
  </g-slides>
</ion-content>
